home *** CD-ROM | disk | FTP | other *** search
Gui4CLI script | 1998-06-24 | 2.6 KB | 110 lines |
- G4C
-
- winbig -1 -1 400 39 "CLI-Master Configuration"
- winsmall -1 -1 400 39
- wintype 11010001
- varpath "climaster/*"
-
- xonload
- ifexists variable ICONSTART
- and $ICONSTART = YES
- update config.g 3 1
- else
- update config.g 3 0
- endif
- guiopen config.g
-
- xonopen
- update config.g 1 0
- gosub config.g matchitem
-
- xonrmb
- guiclose config.g
-
- xonclose
- ifexists file env:cmtt
- delete env:cmtt
- endif
- guiquit config.g
-
-
- xcycler 0 0 350 13 "" cfg_item
- gadid 1
- cstr "Default Text Editor" "TXTEDITOR"
- cstr "Multi-Format Picture Viewer" "PICVIEWER"
- cstr "8SVX/WAV Sound Sample Player" "SVXPLAYER"
- cstr "Multi-Format Module Player" "MODPLAYER"
- cstr "AmigaGuide Program" "GUIDEPROG"
- cstr "PowerPacked Text Reader" "PPTXTPROG"
- cstr "Stop Music From Playing" "STOPMUSIC"
- cstr "JPEG/JFIF Picture Viewer" "JPGVIEWER"
- gosub config.g matchitem
-
- xbutton 350 0 50 13 Open
- reqfile -1 -1 250 -80 "Choose File." load cfg_strg SYS:
- update config.g 2 $cfg_strg
- $cfg_item = $cfg_strg
- setgad config.g 2 on
-
- xtextin 0 13 400 13 "" cfg_strg "" 100
- gadid 2
- $cfg_item = $cfg_strg
- gosub config.g setvars
-
- xbutton 0 26 75 13 Save
- gosub config.g makelist
- launch 1 'cmst:bin/filetott from env:cmtt to cmst:climaster'
- xonreturn 1
- guiclose config.g
-
- xbutton 75 26 75 13 Use
- gosub config.g setvars
- guiclose config.g
-
- xbutton 150 26 75 13 Restore
- ttget cmst:climaster
- gosub config.g setvars
- guiclose config.g
-
- xcheckbox 230 27 26 11 "AppIcon Startup?" ICONSTART YES NO off
- gadid 3
- gadtitle right
- climaster/ICONSTART = $ICONSTART
-
- xroutine matchitem
- if $cfg_item == "txteditor"
- update config.g 2 $TXTEDITOR
- elseif $cfg_item == "picviewer"
- update config.g 2 $PICVIEWER
- elseif $cfg_item == "svxplayer"
- update config.g 2 $SVXPLAYER
- elseif $cfg_item == "modplayer"
- update config.g 2 $MODPLAYER
- elseif $cfg_item == "guideprog"
- update config.g 2 $GUIDEPROG
- elseif $cfg_item == "pptxtprog"
- update config.g 2 $PPTXTPROG
- elseif $cfg_item == "stopmusic"
- update config.g 2 $STOPMUSIC
- elseif $cfg_item == "jpgviewer"
- update config.g 2 $JPGVIEWER
- endif
- setgad config.g 2 on
-
- xroutine makelist
- ..cmtt = "ICONSTART=$ICONSTART\nTXTEDITOR=$TXTEDITOR\nPICVIEWER=$PICVIEWER"
- append env:cmtt "\nSVXPLAYER=$SVXPLAYER\nMODPLAYER=$MODPLAYER"
- append env:cmtt "\nGUIDEPROG=$GUIDEPROG\nPPTXTPROG=$PPTXTPROG"
- append env:cmtt "\nSTOPMUSIC=$STOPMUSIC\nJPGVIEWER=$JPGVIEWER"
-
- xroutine setvars
- climaster/ICONSTART = $ICONSTART
- climaster/TXTEDITOR = $TXTEDITOR
- climaster/PICVIEWER = $PICVIEWER
- climaster/SVXPLAYER = $SVXPLAYER
- climaster/MODPLAYER = $MODPLAYER
- climaster/GUIDEPROG = $GUIDEPROG
- climaster/PPTXTPROG = $PPTXTPROG
- climaster/STOPMUSIC = $STOPMUSIC
- climaster/JPGVIEWER = $JPGVIEWER
-